﻿@using DotNetCoreStudy.Web.Models
@using Microsoft.Extensions.Options
@using DotNetCoreStudy.Web
@model Department
@inject IOptions<SystemOptions> options


    <tr>
        @if (Model.EmployeeCount > options.Value.BoldDepartmentEmployeeCountThreshold)
        {
            <td><strong>@Model.Name</strong></td>
        }
        else
        {
            <td>@Model.Name</td>
        }
        <td>@Model.Location</td>
        <td>@Model.EmployeeCount</td>
        <td>
            <a asp-controller="Employee" asp-action="Index" asp-route-departmentId="@Model.Id">Employees</a>
        </td>
    </tr>